package com.linwen.javase.jvm;

/**
 * @author wlw
 * @date 2023/3/14 10:39 PM
 *
 * 可能系统假死  谨慎执行
 */
public class TestStackOverFlowByThread {
    public static void main(String[] args) {
        TestStackOverFlowByThread stack = new TestStackOverFlowByThread();
        stack.stackOverFlowByThread();
    }
    public void stackOverFlowByThread(){
        while (true){
            new Thread(() -> dontStop()).start();
        }
    }
    private void dontStop(){
        while (true){

        }
    }

}
